import mongoose from 'mongoose';

const Schema = mongoose.Schema;
const ErrorSchema = new Schema({
  error: {
    type: Object,
    required: [false, 'errors field is required'],
  },
});

const Error = mongoose.model('errors', ErrorSchema);

export default Error;
